package com.px.mapper;

import com.px.pojo.ShCommodityTempStock;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface ShCommodityTempStockMapper {

    //根据商品的状态获取商品列表
    List<ShCommodityTempStock> selectShCommodityTempStockStatus(@Param("commodityName") String commodityName,
                                                                @Param("dicOneId") Integer dicOneId,
                                                                @Param("dicTwoId") Integer dicTwoId,
                                                                Double minPrice, Double maxPrice,
                                                                @Param("ram") String ram,
                                                                @Param("pageBegin") Integer pageBegin, @Param("pageSize") Integer pageSize)throws Exception;

    //获取临时用户记录数
    int selectShCommodityTempStockCount(@Param("commodityName") String commodityName,
                                        @Param("dicOneId") Integer dicOneId,
                                        @Param("dicTwoId") Integer dicTwoId,
                                        Double minPrice,Double maxPrice,
                                        @Param("ram") String ram)throws Exception;
}
